<?php if ($logined) { ?>
<div class="header cf">
	<div class="welcome fl">welcome, <span class="c-name"><?php echo $user['nickname']; ?></span></div>
	<div class="member-cpl fn"><a id="btn-logout" href="login.php?action=logout" class="login">退出</a><a id="btn-edit" href="profile.php?action=edit">修改资料</a></div>
</div>
<?php } else { ?>
<div class="header">
	<div class="member-cpl fn"><a id="btn-login" href="login.php">登录</a><a href="reg.php" id="btn-reg">注册</a></div>
</div>
<?php } ?>
 
